package com.lyf.scm.plan.domain.convertor;

import com.lyf.scm.plan.api.dto.DirectlyStoreDTO;
import com.lyf.scm.plan.api.dto.DirectlyStoreQueryDTO;
import com.lyf.scm.plan.insfrastructure.db.dataobject.DirectlyStoreDO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * description:
 *
 * @author: haodong
 * @data: 2020/8/29 17:19
 */
@Mapper(componentModel = "spring")
public interface DirectlyStoreConvertor extends BaseConvertor<DirectlyStoreDTO, DirectlyStoreDO>{

    /**
     * 直营门店查询转为DO
     *
     * @param directlyStoreQueryDTO 直接存储查询dto
     * @return {@link DirectlyStoreDO}
     */
    DirectlyStoreDO directlyStoreQueryToDO (DirectlyStoreQueryDTO directlyStoreQueryDTO);

    /**
     * 直接存储查询
     *
     * @param directlyStoreQueryDTO 直接存储查询dto
     * @return {@link List<DirectlyStoreDO>}
     */
    List<DirectlyStoreDO> directlyStoreQueryToDOS (List<DirectlyStoreQueryDTO> directlyStoreQueryDTO);
}
